package controller;

import java.util.List;
import model.Order;
import service.OrderService;

public class OrderController {
    private OrderService orderService;

    public OrderController(OrderService orderService) {
        this.orderService = orderService;
    }

    public void placeOrder(Order order) {
        this.orderService.placeOrder(order);
    }

    public Order getOrder(int id) {
        return this.orderService.getOrder(id);
    }

    public List<Order> listOrders() {
        return this.orderService.listOrders();
    }

    public void processRefund(int orderId) {
        this.orderService.processRefund(orderId);
    }
}
